<!doctype / public "-//w3c//dtd xhtml 1.0 transitional//en" 
		"http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html>
<head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/wikindx2/docs/docs.css" type="text/css" />
</head>
<body>
<h2>WIKINDX Database Schemata</h2>
<p>
The prefix 'WKX_' has been added to all tables to account for future possible 
support of ORACLE and other SQL databases with draconian licensing. The first time WIKINDX is run after installation, update/createSQL.xml is parsed by <a href="classes/init/systemcheckClass.html">SYSTEMCHECK</a> to create the tables and perform any database structural updating. </p>

<p> For exact details of the database structure, please view the <a href="resourceDatabaseMatrix.html">database matrix</a>.</p>
<p>Developers should note that all data written to the database should be escaped to escape control characters such as double quotes, single quotes, backslashes and so on. All data that derives from browser form input is already escaped so nothing more need be done before writing that data to the database. Data that comes from the database is read from the database as binary data (i.e. not escaped) but is automatically escaped before being returned for use (i.e. it will already be escaped if you wish to write it to a session as long as the data is gathered using <a href="classes/sql/fetchRowMethod.html">fetchRow</a>, <a href="classes/sql/fetchOneMethod.html">fetchOne</a> or <a href="classes/sql/loopRecordSetMethod.html">loopRecordSet</a> methods). Any data that derives from external files (such as Endnote or BibTeX imports, must be escaped before inserting to the database - this is easily done by setting the database class object's <em>escapeString </em>method to TRUE before insert or update operations:<br />
<em>$this-&gt;db-&gt;escapeString = TRUE;</em></p>
<p>By default, this variable is FALSE and it is probably a good idea to set it back to FALSE once you have finished with it.  
</p>
</p>
<p align="right"><a href="index.html">WIKINDX home</a></p>
</body>
</html>
